package org.edu.modules.oa.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.util.Date;
@Data
// 表名
@TableName("sys_dict")
// 返回值变成对象
@Accessors(chain = true)
// 重写toString
@EqualsAndHashCode(callSuper = false)
public class VeOaSysDictEntity {


    /**id*/
    @Excel(name = "字典名称", width = 15)
    @ApiModelProperty(value = "字典名称")
    @TableField(value = "id")
    private String id;

    //字典名称
    @Excel(name = "字典名称", width = 15)
    @ApiModelProperty(value = "字典名称")
    @TableField(value = "dict_name")
    private String dictName;

    //字典编码
    @Excel(name = "字典编码", width = 15)
    @ApiModelProperty(value = "字典编码")
    @TableField(value = "dict_code")
    private String dictCode;

    //描述
    @Excel(name = "描述", width = 15)
    @ApiModelProperty(value = "描述")
    @TableField(value = "description")
    private String description;

    //删除状态
    @Excel(name = "删除状态", width = 15)
    @ApiModelProperty(value = "删除状态")
    @TableField(value = "del_flag")
    private Integer delFlag;

    //创建人
    @Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
    @TableField(value = "create_by")
    private String createBy;

    //创建时间
    @Excel(name = "创建时间", width = 15)
    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    //更新人
    @Excel(name = "更新人", width = 15)
    @ApiModelProperty(value = "更新人")
    @TableField(value = "update_by")
    private String updateBy;

    //更新时间
    @Excel(name = "更新时间", width = 15)
    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    //type
    @Excel(name = "字典类型0为string,1为number", width = 15)
    @ApiModelProperty(value = "字典类型0为string,1为number")
    @TableField(value = "type")
    private Integer type;
}
